<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>地质灾害个人预防知识 - 科普小站</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        danger: '#F87171',
                        warning: '#FBBF24',
                        earth: {
                            100: '#E7E5E4',
                            300: '#A8A29E',
                            700: '#292524',
                            800: '#1C1917'
                        },
                        disaster: {
                            landslide: '#78350F',
                            debris: '#92400E',
                            earthquake: '#4B5563',
                            sinkhole: '#6B7280'
                        }
                    }
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .disaster-icon {
                @apply w-12 h-12 rounded-full flex items-center justify-center text-xl;
            }
            .timeline-dot {
                @apply absolute left-1/2 transform -translate-x-1/2 w-6 h-6 rounded-full bg-primary border-4 border-white z-10;
            }
        }
    </style>
</head>
<body class="bg-gray-50 font-sans text-gray-800">
<!-- 导航栏 -->
<header class="sticky top-0 bg-white shadow-md z-50">
    <div class="container mx-auto px-4">
        <div class="flex items-center justify-between h-16">
            <div class="flex items-center">
                <i class="fa fa-mountain text-primary text-2xl"></i>
                <h1 class="text-xl font-bold ml-2">地质灾害预防知识</h1>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="#overview" class="font-medium hover:text-primary transition-colors">首页</a>
                <a href="#types" class="font-medium hover:text-primary transition-colors">灾害类型</a>
                <a href="#prevention" class="font-medium hover:text-primary transition-colors">预防措施</a>
                <a href="#escape" class="font-medium hover:text-primary transition-colors">逃生指南</a>
            </nav>

            <button class="md:hidden text-gray-600 hover:text-primary">
                <i class="fa fa-bars"></i>
            </button>
        </div>
    </div>
</header>

<!-- 移动端菜单 -->
<div class="fixed inset-0 bg-white z-50 transform translate-x-full transition-transform duration-300 md:hidden">
    <div class="p-4 border-b border-gray-200 flex justify-between items-center">
        <h2 class="text-xl font-bold">菜单</h2>
        <button class="text-gray-500 hover:text-gray-700">
            <i class="fa fa-times"></i>
        </button>
    </div>
    <div class="p-4 space-y-3">
        <a href="#overview" class="block py-2 text-gray-700 hover:text-primary">首页</a>
        <a href="#types" class="block py-2 text-gray-700 hover:text-primary">灾害类型</a>
        <a href="#prevention" class="block py-2 text-gray-700 hover:text-primary">预防措施</a>
        <a href="#escape" class="block py-2 text-gray-700 hover:text-primary">逃生指南</a>
    </div>
</div>

<!-- 紧急通知栏 -->
<div class="bg-warning/10 border-l-4 border-warning py-3 px-4">
    <div class="container mx-auto flex items-center">
        <i class="fa fa-exclamation-triangle text-warning mr-3 text-xl"></i>
        <p class="text-gray-700"><strong>地质灾害预警：</strong>近期强降雨地区需警惕山体滑坡和泥石流，居住在山区的居民请提前做好防范准备。</p>
    </div>
</div>

<!-- 主内容区 -->
<main class="container mx-auto px-4 py-8">
    <!-- 概述部分 -->
    <section id="overview" class="mb-12">
        <div class="bg-gradient-to-r from-primary to-primary/80 rounded-2xl overflow-hidden shadow-lg">
            <div class="flex flex-col md:flex-row">
                <div class="p-6 md:p-8 md:w-1/2 text-white">
                    <h2 class="text-2xl md:text-3xl font-bold mb-4">地质灾害个人防护指南</h2>
                    <p class="text-white/90 mb-6 leading-relaxed">
                        地质灾害是指由自然因素或人为活动引发的危害人民生命和财产安全的山体崩塌、滑坡、泥石流、地面塌陷等与地质作用有关的灾害。掌握正确的识别、预防和逃生方法，能有效降低灾害带来的风险。
                    </p>
                    <div class="flex flex-wrap gap-3">
                        <a href="#prevention" class="bg-white text-primary font-medium px-5 py-2 rounded-lg hover:bg-gray-100 transition-colors flex items-center">
                            <i class="fa fa-shield mr-2"></i> 预防措施
                        </a>
                        <a href="#escape" class="bg-transparent border-2 border-white text-white font-medium px-5 py-2 rounded-lg hover:bg-white/10 transition-colors flex items-center">
                            <i class="fa fa-road mr-2"></i> 逃生路线
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 h-64 md:h-auto">
                    <img src="https://picsum.photos/seed/geology/800/600" alt="地质灾害示意图" class="w-full h-full object-cover">
                </div>
            </div>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-8">
            <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                <div class="flex items-center mb-4">
                    <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                        <i class="fa fa-map-signs text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold">危险区域识别</h3>
                </div>
                <p class="text-gray-600">
                    了解常见地质灾害的易发区域特征，避免在危险地带停留或居住，是预防地质灾害的首要措施。
                </p>
            </div>

            <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                <div class="flex items-center mb-4">
                    <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                        <i class="fa fa-bell text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold">前兆信号识别</h3>
                </div>
                <p class="text-gray-600">
                    地质灾害发生前通常会出现各种异常现象，及时识别这些信号能为逃生争取宝贵时间。
                </p>
            </div>

            <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                <div class="flex items-center mb-4">
                    <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                        <i class="fa fa-route text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold">应急逃生准备</h3>
                </div>
                <p class="text-gray-600">
                    提前规划逃生路线，准备应急物品，熟悉避难场所位置，能在灾害发生时迅速安全撤离。
                </p>
            </div>
        </div>
    </section>

    <!-- 灾害类型 -->
    <section id="types" class="mb-12">
        <h2 class="text-2xl font-bold mb-6 flex items-center">
            <i class="fa fa-list-alt text-primary mr-2"></i> 常见地质灾害类型
        </h2>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- 滑坡 -->
            <div class="bg-white rounded-xl overflow-hidden shadow-sm card-hover">
                <div class="h-48 overflow-hidden">
                    <img src="https://picsum.photos/seed/landslide/600/400" alt="滑坡灾害" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                </div>
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="disaster-icon bg-disaster-landslide/10 text-disaster-landslide">
                            <i class="fa fa-mountain"></i>
                        </div>
                        <h3 class="text-xl font-bold ml-3">滑坡</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        斜坡上的土体或岩体，在重力作用下，沿着一定的软弱面或软弱带，整体地或分散地顺坡向下滑动的现象。
                    </p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">多发季节：雨季、汛期</span>
                    </div>
                </div>
            </div>

            <!-- 泥石流 -->
            <div class="bg-white rounded-xl overflow-hidden shadow-sm card-hover">
                <div class="h-48 overflow-hidden">
                    <img src="https://picsum.photos/seed/debrisflow/600/400" alt="泥石流灾害" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                </div>
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="disaster-icon bg-disaster-debris/10 text-disaster-debris">
                            <i class="fa fa-water"></i>
                        </div>
                        <h3 class="text-xl font-bold ml-3">泥石流</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        由暴雨、冰雪融水等引发，在山区沟谷中形成的携带大量泥沙、石块等固体物质的特殊洪流。
                    </p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">多发季节：夏季暴雨期</span>
                    </div>
                </div>
            </div>

            <!-- 崩塌 -->
            <div class="bg-white rounded-xl overflow-hidden shadow-sm card-hover">
                <div class="h-48 overflow-hidden">
                    <img src="https://picsum.photos/seed/collapse/600/400" alt="崩塌灾害" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                </div>
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="disaster-icon bg-disaster-landslide/10 text-disaster-landslide">
                            <i class="fa fa-landmark"></i>
                        </div>
                        <h3 class="text-xl font-bold ml-3">崩塌</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        较陡斜坡上的岩土体在重力作用下突然脱离母体崩落、滚动、堆积在坡脚的地质现象。
                    </p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">诱发因素：地震、暴雨</span>
                    </div>
                </div>
            </div>

            <!-- 地面塌陷 -->
            <div class="bg-white rounded-xl overflow-hidden shadow-sm card-hover">
                <div class="h-48 overflow-hidden">
                    <img src="https://picsum.photos/seed/sinkhole/600/400" alt="地面塌陷灾害" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                </div>
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="disaster-icon bg-disaster-sinkhole/10 text-disaster-sinkhole">
                            <i class="fa fa-hole"></i>
                        </div>
                        <h3 class="text-xl font-bold ml-3">地面塌陷</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        地表岩、土体在自然或人为因素作用下，向下塌落，并在地面形成塌陷坑的动力地质现象。
                    </p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">多发区域：岩溶地区、矿区</span>
                    </div>
                </div>
            </div>

            <!-- 地震次生灾害 -->
            <div class="bg-white rounded-xl overflow-hidden shadow-sm card-hover">
                <div class="h-48 overflow-hidden">
                    <img src="https://picsum.photos/seed/earthquake/600/400" alt="地震次生灾害" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                </div>
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="disaster-icon bg-disaster-earthquake/10 text-disaster-earthquake">
                            <i class="fa fa-wifi"></i>
                        </div>
                        <h3 class="text-xl font-bold ml-3">地震次生灾害</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        地震可能引发山体滑坡、泥石流、崩塌等次生地质灾害，往往比地震本身造成更大损失。
                    </p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">特点：突发性强、成灾快</span>
                    </div>
                </div>
            </div>

            <!-- 山洪 -->
            <div class="bg-white rounded-xl overflow-hidden shadow-sm card-hover">
                <div class="h-48 overflow-hidden">
                    <img src="https://picsum.photos/seed/flashflood/600/400" alt="山洪灾害" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                </div>
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="disaster-icon bg-blue-100 text-blue-600">
                            <i class="fa fa-tint"></i>
                        </div>
                        <h3 class="text-xl font-bold ml-3">山洪</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        山区溪沟中发生的暴涨洪水，具有突发性强、水量集中流速大、冲刷破坏力强等特点。
                    </p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">多发季节：夏季暴雨期</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 前兆识别与预防措施 -->
    <section id="prevention" class="mb-12">
        <h2 class="text-2xl font-bold mb-6 flex items-center">
            <i class="fa fa-shield text-primary mr-2"></i> 前兆识别与预防措施
        </h2>

        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
            <div class="bg-white rounded-xl shadow-sm p-6 md:p-8">
                <h3 class="text-xl font-bold mb-6">灾害前兆识别</h3>

                <div class="space-y-6">
                    <div>
                        <h4 class="font-bold text-lg mb-3 flex items-center">
                            <i class="fa fa-exclamation-triangle text-warning mr-2"></i> 滑坡和崩塌前兆
                        </h4>
                        <ul class="space-y-2 text-gray-600 pl-6">
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>地面出现裂缝，房屋墙壁开裂，门窗变形</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>坡体内部传来"沙沙"声或岩石摩擦、断裂声</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>井水水位突然升降，水质浑浊，出现翻砂、冒泡</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>树木歪斜，动物惊恐不安、不进窝</span>
                            </li>
                        </ul>
                    </div>

                    <div>
                        <h4 class="font-bold text-lg mb-3 flex items-center">
                            <i class="fa fa-exclamation-triangle text-warning mr-2"></i> 泥石流前兆
                        </h4>
                        <ul class="space-y-2 text-gray-600 pl-6">
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>河流突然断流或水位突然上涨，水质变得浑浊</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>山谷中传来类似火车轰鸣或闷雷声</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                                <span>出现特大暴雨或长时间降雨</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl shadow-sm p-6 md:p-8">
                <h3 class="text-xl font-bold mb-6">日常预防措施</h3>

                <div class="space-y-4">
                    <div class="flex">
                        <div class="flex-shrink-0 w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                            <span class="font-bold">1</span>
                        </div>
                        <div>
                            <h4 class="font-bold text-lg mb-1">了解居住环境</h4>
                            <p class="text-gray-600">了解居住地是否处于地质灾害易发区，熟悉周边的地形地貌，知道危险区域和安全区域的位置。</p>
                        </div>
                    </div>

                    <div class="flex">
                        <div class="flex-shrink-0 w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                            <span class="font-bold">2</span>
                        </div>
                        <div>
                            <h4 class="font-bold text-lg mb-1">关注预警信息</h4>
                            <p class="text-gray-600">定期查看当地政府发布的地质灾害预警信息，特别是在暴雨、汛期等高发时段，密切关注天气变化。</p>
                        </div>
                    </div>

                    <div class="flex">
                        <div class="flex-shrink-0 w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                            <span class="font-bold">3</span>
                        </div>
                        <div>
                            <h4 class="font-bold text-lg mb-1">避免危险行为</h4>
                            <p class="text-gray-600">不在陡坡、沟谷、悬崖边搭建房屋或长时间停留，不随意开挖坡脚，不随意堆放弃土、弃渣。</p>
                        </div>
                    </div>

                    <div class="flex">
                        <div class="flex-shrink-0 w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary mr-4">
                            <span class="font-bold">4</span>
                        </div>
                        <div>
                            <h4 class="font-bold text-lg mb-1">准备应急物品</h4>
                            <p class="text-gray-600">准备应急背包，包含饮用水、食品、手电筒、急救包、重要证件等物品，方便在紧急情况下快速携带撤离。</p>
                        </div>
                    </div>
                </div>

                <div class="mt-6 p-4 bg-warning/5 rounded-lg">
                    <h4 class="font-bold mb-1">危险区域识别</h4>
                    <p class="text-gray-600 text-sm">
                        高风险区域：陡坡下方、沟谷两侧及下游、地质破碎山区、曾发生过滑坡的区域。<br>
                        相对安全区域：地势开阔平坦地带、远离陡坡的高地、政府指定的避难场所。
                    </p>
                </div>
            </div>
        </div>
    </section>

    <!-- 逃生指南 -->
    <section id="escape" class="mb-12">
        <h2 class="text-2xl font-bold mb-6 flex items-center">
            <i class="fa fa-route text-primary mr-2"></i> 应急逃生指南
        </h2>

        <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <div class="flex items-center mb-4">
                    <div class="disaster-icon bg-disaster-landslide/10 text-disaster-landslide mr-4">
                        <i class="fa fa-mountain"></i>
                    </div>
                    <h3 class="text-lg font-bold">滑坡逃生</h3>
                </div>
                <ul class="space-y-2 text-gray-600 text-sm">
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>向滑坡体两侧的稳定区域撤离，切勿顺着滑坡方向逃跑</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>如果无法撤离，应迅速躲在坚固的障碍物后，保护头部</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>不要贪恋财物，立即撤离危险区域</span>
                    </li>
                </ul>
            </div>

            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <div class="flex items-center mb-4">
                    <div class="disaster-icon bg-disaster-debris/10 text-disaster-debris mr-4">
                        <i class="fa fa-water"></i>
                    </div>
                    <h3 class="text-lg font-bold">泥石流逃生</h3>
                </div>
                <ul class="space-y-2 text-gray-600 text-sm">
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>立即向泥石流沟谷两侧的高处撤离，越高越远越好</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>切勿沿沟谷上下游方向逃跑，也不要在凹形陡坡处停留</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>选择平整的高地作为躲避点，避开有滚石危险的地段</span>
                    </li>
                </ul>
            </div>

            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <div class="flex items-center mb-4">
                    <div class="disaster-icon bg-disaster-sinkhole/10 text-disaster-sinkhole mr-4">
                        <i class="fa fa-hole"></i>
                    </div>
                    <h3 class="text-lg font-bold">地面塌陷逃生</h3>
                </div>
                <ul class="space-y-2 text-gray-600 text-sm">
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>立即远离塌陷区域，向安全的地方撤离</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>如发现地面有裂缝或塌陷迹象，应立即警示他人</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                        <span>不要靠近塌陷边缘，以防二次塌陷造成危险</span>
                    </li>
                </ul>
            </div>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <h3 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fa fa-phone text-danger mr-2"></i> 紧急联系电话
                </h3>
                <div class="grid grid-cols-2 gap-4">
                    <div class="bg-gray-50 rounded-lg p-4 text-center">
                        <div class="text-danger text-2xl mb-1">110</div>
                        <div class="text-gray-600 text-sm">报警服务</div>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-4 text-center">
                        <div class="text-danger text-2xl mb-1">119</div>
                        <div class="text-gray-600 text-sm">消防救援</div>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-4 text-center">
                        <div class="text-danger text-2xl mb-1">120</div>
                        <div class="text-gray-600 text-sm">医疗急救</div>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-4 text-center">
                        <div class="text-primary text-2xl mb-1">12336</div>
                        <div class="text-gray-600 text-sm">国土资源举报电话</div>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <h3 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fa fa-box text-primary mr-2"></i> 应急物资清单
                </h3>
                <div class="space-y-2">
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">饮用水（每人每天至少3升）</span>
                    </div>
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">方便食品（压缩饼干、罐头等）</span>
                    </div>
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">手电筒和备用电池、应急灯</span>
                    </div>
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">急救包（绷带、消毒液、常用药品）</span>
                    </div>
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">个人证件复印件、少量现金</span>
                    </div>
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">雨具、防水鞋、保暖衣物</span>
                    </div>
                    <div class="flex items-center">
                        <input type="checkbox" class="mr-2 h-4 w-4 text-primary">
                        <span class="text-gray-600">口哨（用于求救）、多功能工具刀</span>
                    </div>
                </div>
            </div>
        </div>
    </section>
</main>

<!-- 页脚 -->
<footer class="bg-gray-800 text-white py-8">
    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
            <div>
                <div class="flex items-center space-x-2 mb-4">
                    <i class="fa fa-mountain text-primary text-2xl"></i>
                    <h2 class="text-xl font-bold">地质灾害预防知识</h2>
                </div>
                <p class="text-gray-400 text-sm">
                    普及地质灾害预防知识，提高公众防灾减灾意识和自救互救能力，减少灾害损失。
                </p>
            </div>

            <div>
                <h3 class="text-lg font-medium mb-4">快速链接</h3>
                <ul class="space-y-2 text-gray-400">
                    <li><a href="#overview" class="hover:text-white transition-colors">首页</a></li>
                    <li><a href="#types" class="hover:text-white transition-colors">灾害类型</a></li>
                    <li><a href="#prevention" class="hover:text-white transition-colors">预防措施</a></li>
                    <li><a href="#escape" class="hover:text-white transition-colors">逃生指南</a></li>
                </ul>
            </div>

            <div>
                <h3 class="text-lg font-medium mb-4">相关资源</h3>
                <ul class="space-y-2 text-gray-400">
                    <li><a href="#" class="hover:text-white transition-colors">国家应急管理部</a></li>
                    <li><a href="#" class="hover:text-white transition-colors">自然资源部</a></li>
                    <li><a href="#" class="hover:text-white transition-colors">地质灾害预警系统</a></li>
                </ul>
            </div>

            <div>
                <h3 class="text-lg font-medium mb-4">联系我们</h3>
                <ul class="space-y-2 text-gray-400">
                    <li class="flex items-center">
                        <i class="fa fa-envelope mr-2"></i>
                        <span>contact@geohazard-safety.com</span>
                    </li>
                    <li class="flex items-center">
                        <i class="fa fa-phone mr-2"></i>
                        <span>400-123-4567</span>
                    </li>
                </ul>
            </div>
        </div>

        <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-500 text-sm">
            <p>&copy; 2025 地质灾害预防知识网 | 本网站信息仅供参考，具体请以官方发布为准</p>
        </div>
    </div>
</footer>

<!-- 回到顶部按钮 -->
<button id="back-to-top" class="fixed bottom-6 right-6 bg-primary text-white w-12 h-12 rounded-full flex items-center justify-center shadow-lg opacity-0 invisible transition-all duration-300 hover:bg-primary/90">
    <i class="fa fa-arrow-up"></i>
</button>

<!-- 脚本 -->
<script>
    // 初始化页面
    document.addEventListener('DOMContentLoaded', function() {
        // 初始化回到顶部按钮
        initBackToTopButton();

        // 初始化平滑滚动
        initSmoothScroll();

        // 初始化移动端菜单
        initMobileMenu();
    });

    // 回到顶部按钮
    function initBackToTopButton() {
        const backToTopButton = document.getElementById('back-to-top');

        window.addEventListener('scroll', function() {
            if (window.pageYOffset > 300) {
                backToTopButton.classList.remove('opacity-0', 'invisible');
                backToTopButton.classList.add('opacity-100', 'visible');
            } else {
                backToTopButton.classList.add('opacity-0', 'invisible');
                backToTopButton.classList.remove('opacity-100', 'visible');
            }
        });

        backToTopButton.addEventListener('click', function() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });
    }

    // 平滑滚动
    function initSmoothScroll() {
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();

                const targetId = this.getAttribute('href');
                if (targetId === '#') return;

                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });

                    // 如果是移动端，点击后关闭菜单
                    const mobileMenu = document.querySelector('.translate-x-full');
                    if (!mobileMenu.classList.contains('translate-x-full')) {
                        mobileMenu.classList.add('translate-x-full');
                    }
                }
            });
        });
    }

    // 移动端菜单
    function initMobileMenu() {
        const menuBtn = document.querySelector('.md\\:hidden.text-gray-600');
        const closeBtn = document.querySelector('.fixed.inset-0.bg-white.z-50 .fa-times').parentElement;
        const mobileMenu = document.querySelector('.fixed.inset-0.bg-white.z-50');

        menuBtn.addEventListener('click', function() {
            mobileMenu.classList.remove('translate-x-full');
        });

        closeBtn.addEventListener('click', function() {
            mobileMenu.classList.add('translate-x-full');
        });
    }
</script>
</body>
</html>

